package org.ligson.fwc.core.id.impl;



import org.ligson.fwc.core.dao.BaseDao;
import org.ligson.fwc.core.id.IdGenerator;

import java.util.UUID;

/**
 * Created by ligson on 2017/6/14.
 */
public class UUIDIdGenerator implements IdGenerator<String> {
    @Override
    public String generatorId(BaseDao baseDao) {
        return UUID.randomUUID().toString().replaceAll("-", "");
    }
}
